package com.example.work4.adapter.viewHolder

import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView
import com.example.work4.R
import com.example.work4.http.body.po.ChatInfoPage
import com.example.work4.po.Message

class MessageViewHolder(
    var dataBinding: ViewDataBinding, var mess:Message = Message(),
    val avatar: ImageView = dataBinding.root.findViewById(R.id.avatar)
) : RecyclerView.ViewHolder(dataBinding.root), View.OnClickListener {

    init {
        val messageLayout: LinearLayout = dataBinding.root.findViewById(R.id.message_layout)
        messageLayout.setOnClickListener(this)
    }
    override fun onClick(v: View?) {
        when(v?.id) {

        }
    }
}